package com.chengyu.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chengyu.core.entity.SceneRideCodeData;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 乘车码推送数据表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2023-05-26
 */
public interface ISceneRideCodeDataService extends IService<SceneRideCodeData> {

   void obtainRideCodeData() throws Exception;

   boolean updataExpire(String phone,String typeCode);

   Integer getExistingData(String typeCode);


   BigDecimal getTodayCarbonNumToalByPhoneDate(@Param("phone")String phone);

   Integer getTodayCountByPhoneDate(@Param("phone")String phone);

   //根据手机号获取所有的信息
   List<SceneRideCodeData> queryList(SceneRideCodeData sceneRideCodeData);

   Long updateClaimPointsByPhone(SceneRideCodeData sceneRideCodeData) throws Exception;
}
